//
//  返回一段文字的尺寸分类
//

#import "NSString+LZFCalTextSize.h"

@implementation NSString (LZFCalTextSize)
+(CGRect)calTextSize:(NSString *)string withMaxSize:(CGSize)maxSize withAttrDic:(NSDictionary *)dic
{
    return [string boundingRectWithSize:maxSize options:NSStringDrawingUsesLineFragmentOrigin attributes:dic context:nil];
}
@end
